import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const pinia = createPinia()
pinia.use(piniaPersist)
const app = createApp(App)
app.use(pinia).use(store).use(router).use(ElementPlus, {locale: zhCn})
app.mount('#app')